<div class="container">
<div class="row clearfix">
<style>
.control-label{text-align:right;}
</style>
	<div class="col-md-offset-3 col-md-6">
		<p><br/></p>
		<p>你好，{{$userinfo['nickname']}}</p>
		<p>第三方账号首次登录时需要完善一些资料，你可绑定一个已有的135账号或者创建一个新的135用户</p>
		<ul class="nav nav-tabs" role="tablist">
		    <li role="presentation" class="active"><a href="#bind-user" aria-controls="bind-user" role="tab" data-toggle="tab">{{__('绑定已有用户')}}</a></li>
		    <li role="presentation"><a href="#regist-user" aria-controls="regist-user" role="tab" data-toggle="tab">{{__('注册新用户')}}</a></li>
		  </ul>
		  <!-- Tab panes -->
		  <div class="tab-content" style="margin-top:10px;">
		  	 <div role="tabpanel" class="tab-pane active" id="bind-user">
		    	{{$this->Form->create('User',array('id'=>'registerform','method'=>"post",'url'=>array('action'=>'bind','controller'=>'weixin','plugin'=>'oauth')))}}
				
				<div class="form-group clearfix">
					<label class="col-sm-3 control-label" >{{__('邮箱')}} <span style="color:red">*</span></label>
					<div class="col-sm-8 controls">
						{{$this->Form->input('email',array('class'=>'form-control','required'=>'required','div'=>false,'label'=>false,'type'=>"email",'maxlength'=>"32"))}}
					</div>
				</div>
				<div class="form-group clearfix">
					<label class="col-sm-3 control-label" >{{__('密码')}} <span style="color:red">*</span></label>
					<div class="col-sm-8 controls">
						{{$this->Form->input('password',array('class'=>'form-control','type'=>'password','minlength'=>"6",'required'=>'required','div'=>false,'label'=>false,'maxlength'=>"32"))}}
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"></label>
					<div class="col-sm-8"><input class="btn btn-primary" name="bind" type="submit" value="{{__('绑定已有用户')}}"></div>
				</div>
				{{$this->Form->end()}}
		    </div>
		    <div role="tabpanel" class="tab-pane" id="regist-user">
		    	{{$this->Form->create('User',array('id'=>'registerform','method'=>"post",'url'=>array('action'=>'register','controller'=>'weixin','plugin'=>'oauth')))}}
				
				<div class="form-group clearfix">
					<label class="col-sm-3 control-label" >{{__('邮箱')}} <span style="color:red">*</span></label>
					<div class="col-sm-8 controls">
						{{$this->Form->input('email',array('class'=>'form-control','required'=>'required','div'=>false,'label'=>false,'type'=>"email",'onblur'=>"checkusername()",'maxlength'=>"32"))}}
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"></label>
					<div class="col-sm-8"><input class="btn btn-primary" name="regist" type="submit" value="{{__('注册')}}"></div>
				</div>
				<div>
					<label>选填登录密码</label>
					<div id="set-password-panel">
					<p>如果不设置密码，每次使用第三方账号登录</p>
					<p>设置密码后，可以使用本站设置的邮箱、密码登录</p>
					</div>
				</div>
				<div class="form-group clearfix">
					<label class="col-sm-3 control-label" >{{__('密码')}}</label>
					<div class="col-sm-8 controls">
						{{$this->Form->input('password',array('class'=>'form-control','type'=>'password','minlength'=>"6",'required'=>false,'div'=>false,'label'=>false,'maxlength'=>"32"))}}
					</div>
				</div>
				<div class="form-group clearfix">
					<label class="col-sm-3 control-label" >{{__('确认密码')}}</label>
					<div class="col-sm-8 controls">
						{{$this->Form->input('password_confirm',array('class'=>'form-control','type'=>'password','minlength'=>"6",'required'=>false,'div'=>false,'label'=>false,'maxlength'=>"32"))}}
					</div>
				</div>
				
				{{$this->Form->end()}}
		    </div>
		  </div>
	</div>
	
</div>
</div>